package drinkshop;

/**
 * @Auther: fei
 * @Date: 2021/6/6 - 06 - 06 - 10:24
 * @Description: drinkshop
 * @version: 1.0
 */
public class MilkyTea extends Drink {
    //属性
    private String append;

    //方法

    public String getAppend() {
        return append;
    }

    public void setAppend(String append) {
        this.append = append;
    }

    //构造器

    public MilkyTea() {
    }

    public MilkyTea(String name, double price, String size, String remark, String isIce, int num, String append) {
        super(name, price, size, remark, isIce, num);
        this.append = append;
    }
    //重写父类showDrink方法：

    @Override
    public String showDrink() {
        return super.showDrink()+"\n需要加入："+append;
    }
}
